<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.ys.malini.model.*" %>
<%
	session.setAttribute("ctx",request.getContextPath());
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MALINI</title>
<!--css-->
<link href="<%=request.getContextPath()%>/css/main_index.css" rel="stylesheet" type="text/css" media="all" />
<!--jquery 1.3.1-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.3.1.min.js"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/js/jfade.js'></script>
<!--导航-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ddaccordion.js"></script>
<!--导航幻灯片初始.导航点击效果-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/meunlb.js"></script>
<!--导航幻灯片点击切换效果-->
<script type="text/javascript">
<!--
$(document).ready(function(){
		$("#test_image a").jfade();
	$("#test_image a").bind("click", function(){
		$("#test_image a").each(function(){
			$(this).css("border","2px solid #0f0e0c");
		})
  		$(this).css("border","2px solid #2e2e2e"); 
	});
$("#test_image img").bind("click", function(){
		
  		var test_image = $(this).attr("name");
  		var paras = $(this).attr("id");
  		var base='<%=session.getAttribute("ctx")%>';
		$("#test_").html("<div class=\"pro_pic\"><img src='"+test_image+"' onmouseover=\"ddaccordion.collapseall('menuheaders');return false\"/><a href='"+base+"/productNewAction.do?op=findNewProductById"+paras+"' class=\"pic_more\"><font color=\"#ffffff\">点击购买>></font></a></div>");
	});   
})
-->
</script>

</head>
<body >
<div class="main_cont">
<%@ include file="top.jsp" %>
<div class="main_contain">
<div class="main_l">
<a href="#"><img src="<%=request.getContextPath()%>/images/main_logo.gif" /></a>
<%@ include file="menu.jsp" %>
<%@ include file="bottom.jsp" %>
</div>
<div class="main_r" id="test_"   onmouseover="ddaccordion.collapseall('menuheaders');return false;" > 
<div class="shop">
<h2>我的购物车</h2>
<div class="shop_m">
<ul class="shop_ul">
<li>
	<table width="100%" border="0" cellspacing="3" cellpadding="3">
	 <tr><td colspan="8">${cartMsg}</td></tr>
	  <tr>
	    <td width="20%">商品</td>
	    <td width="20%">颜色</td>
	    <td width="10%">尺寸</td>
	    <td width="10%">售价</td>
	    <td width="10%">数量</td>
	    <td width="10%">优惠</td>
	    <td width="10%">小计</td>
	    <td width="10%">操作</td>
	  </tr>
	  <%
	  	List orderList = (ArrayList)request.getSession().getAttribute("orderList");
	  	if(orderList!=null){
	  		for(int i=0;i<orderList.size();i++){
	  			TOrder order =(TOrder)orderList.get(i);
	   %>
	   <tr>
		    <td width="20%"><a href="#"><img src="<%=session.getAttribute("ctx")%>/<%=order.getSmallImages() %>" width="30" height="30" /></a><br/><%=order.getProductName() %></td>
		    <td width="20%"><%=order.getColor() %></td>
		    <td width="10%"><%=order.getSize() %></td>
		    <td width="10%"><%=order.getSalePrice() %></td>
		    <td width="10%"><select name="buyCount" class="select_styel"><option><%=order.getBuyCount() %></option></select></td>
		    <td width="10%"><%=order.getMarketPrice()-order.getSalePrice() %></td>
		    <td width="10%"><%=order.getBuyCount()*order.getSalePrice() %></td>
		    <td width="10%"><a href="/malini/cartAction.do?op=deleteOrderFromCart&productId=<%=order.getProductId() %>">删除</a></td>
	  </tr>
	  
	  <%} }%>
	  </table>
</li>

</ul>
</div>
<h2>购物流程图</h2>
<ul class="process">
<li><a href="#">进入购物车</a></li>
<li class="bg_none"><img src="<%=request.getContextPath()%>/images/pt_bg.gif" /></li>
<li><a href="#">登录注册</a></li>
<li class="bg_none"><img src="<%=request.getContextPath()%>/images/pt_bg.gif" /></li>
<li><a href="#">填写信息</a></li>
<li class="bg_none"><img src="<%=request.getContextPath()%>/images/pt_bg.gif" /></li>
<li><a href="#">生成订单</a></li>
<li class="bg_none"><img src="<%=request.getContextPath()%>/images/pt_bg.gif" /></li>
<li><a href="#">完成订单</a></li>
</ul>
<div class="shop_bn"><button class="button0" hidefocus="hidefocus"><span><em>继续购物</em></span></button><button class="button0" hidefocus="hidefocus" style="margin-left:15px;"><span><em>结&nbsp;&nbsp;算</em></span></button></div>
</div>
</div>
</div>

</div>
 
</body>
</html>
